class AddPersonIdToVisitor < ActiveRecord::Migration
  def self.up
    change_table :visitors do |t|
      t.references :person
    end
    change_table :people do |t|
      t.references :visitor
    end
  end

  def self.down
    change_table :visitors do |t|
      t.remove :person_id
    end
    change_table :people do |t|
      t.remove :visitor_id
    end
  end
end
